rewrite (something) to improve (something)

Translations
réécrire (quelque chose) pour améliorer (quelque chose)